define(['egis'], function (egis) {
    Window.deserializer = Window.deserializer || new egis.core.Deserializer();
    Window.container = Window.container || {};
    dsBridge.register('create_Element', function (sourceId) {
        var element = new egis.sfs.Element({});
        element.id = sourceId;
        Window.container[sourceId] = element;
    });

    dsBridge.register('Element_setGeometry', function (sourceId, content) {
        var element = Window.container[sourceId];
        var geometry = Window.deserializer.createJsInstance(JSON.parse(content));
        element.geometry = geometry;
    });

    dsBridge.register('Element_setSymbol', function (sourceId, content) {
        var element = Window.container[sourceId];
        var symbol = Window.deserializer.createJsInstance(JSON.parse(content));
        element.symbol = symbol;
    });
})